:root {
    --red: #fe3700;
    --red-transpatent: #faeeea;
    --white: #ffffff;
    --black: #000000;
    --lightblack: #333;
    --lightgrey: #f9f9f9;
    --grey: #eee;
    --darkgrey: #bebebe;
    --darkestgrey: #919191;
    --max-body-width: 1024px;
    --body-width: 80%;
    --menu-visibility: flex;
    --level0-size: 1.5em;
    --level1-size: 1.3em;
    --level1-int: 2em;
    --li-pad-bott: 0.5em;
  }
@media all and (max-width: 650px) {
    :root {
        --body-width: 90%;
        --menu-visibility: none;
        --level0-size: 2em;
        --level1-size: 1.5em;
        --level1-int: 1em;
        --li-pad-bott: 0.7em;
    }
}
  
body {
    max-width: var(--max-body-width);
    width: var(--body-width);
    margin: auto;
    font-family: 'Courier New', Courier, monospace;
    color: var(--lightblack);
    
}
p {
    line-height: 1.7;
    font-family: Arial, Helvetica, sans-serif;
}
ul {
    list-style-type: none;
    margin: 0;
    padding-inline-start: 0;
}
hr {
    width: 50%;
    margin-left: 0;
}
.sitemap_list li {
    padding-bottom: var(--li-pad-bott);
}
.level0 {
    font-size: var(--level0-size);
    padding-top: 1em;
}
.level1 {
    padding-left: var(--level1-int);
    font-size: var(--level1-size);
}
.level2 {
    padding-left: calc(var(--level1-int)*2);
    font-size: var(--level1-size);
}
a {
    text-decoration-color: var(--darkgrey);
    color: var(--black);
}
a:hover {
    color: var(--red);
    text-decoration-color: var(--red);
}
header {
    border-bottom: 1px solid var(--grey);
}
.header_name, .header_menu {
    justify-content: space-between;
    flex-wrap: wrap;
    column-gap: 1em;
}
.header_name {
    display: flex;
    align-items: center;
}
.header_name h1 {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--lightblack);
}
.header_menu {
    display: var(--menu-visibility);
    font-size: 1.3em;
    position: relative;
    z-index: 1;
    padding: 0;
}
.header_menu li {
    cursor: pointer;
    position: relative;
}
.header_menu__item {
    border-bottom: 2px solid rgba(0, 0, 0, 0);
    padding-bottom: 10px;
}
.header_menu__item:hover {
    border-bottom: 2px solid var(--red);
}
.header_menu__item-link {
    padding-bottom: 10px;
    display: block;
}
.header_menu__menu {
    position: absolute;
    width: 300px;
    background-color: var(--white);
    font-size: 0.9em;
    box-shadow: 5px 5px 5px var(--grey), -5px 5px 5px var(--grey);
    padding: 10px 20px;
    border-radius: 15px;
    z-index: 1;
    display: none;
}
.header_menu__menu-list li {
    padding: 10px;
}
.header_menu__item.active {
    border-bottom: 2px solid var(--red);
}
.header_menu__item.active + .header_menu__menu {
    display: block;
}
h1 {
    text-align: center;
    font-size: 2em;
    font-weight: 500;
}
h2 {
    font-size: 1.3em;
    font-weight: 500;
    margin-top: 2em;
}
h3 {
    font-size: 1.3em;
    margin-top: 2.5em;
    margin-bottom: 0;
    font-weight: 700
}
.content {
    min-height: 62vh;
}
.list_icon {
    margin-right: 1em;
    width: 30px;
    height: 30px;
    filter: opacity(0.5);
    flex: 0 0 40px;   
}
.iconed_link {
   font-size: 1.2em;
   display: flex;
   align-items: center; 
}
.iconed_link-icon {
    margin-right: 0.5em;
    width: 20px;
    height: 20px;
    filter: opacity(0.5);
    flex: 0 0 20px;  
}
.pages_list, .contacts {
    margin-top: 2em;
}
.contacts li, .pages_list li {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
    font-size: 1.5em;
    column-gap: 1em;
}
.pages_list li svg {
    margin-right: 1em;
    width: 30px;
    height: 30px;
    color: var(--darkestgrey);
    flex: 0 0 40px;
}
.links_list li {
    padding-bottom: 1em;
}
.links_list li a {
    font-size: 1.1em;
}
.story_list {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    line-height: 1.5em;
}
.story_list li:nth-child(even) {
    background-color: var(--lightgrey);
}
.story_list li {
    padding: 0.75em;
    display: flex;
    align-items: center;
    column-gap: 1em;
    border-radius: 10px;
}
.story_list li::before {
    content: url('../svg/spiral.svg');
    height: 1.5em;
    width: 1.5em;
    display: block;
    flex: 0 0 1.5em;
}
.screenshot {
    max-width: 350px;
    margin-bottom: 1em;
    padding: 10px;
    background-color: antiquewhite;
    font-family: 'Times New Roman', Times, serif;
}
.nav_links {
    font-size: 2em;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    column-gap: 2em;
    margin: 2em 0;
}
.nav_links-small {
    font-size: 1.5em;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 2em;
    margin: 1.5em 0;
}
.next, .prev, .blank{
    color: var(--lightblack);
    text-decoration: none;
    background-color: var(--lightgrey);
    display: flex;
    align-items: center;
}
.next, .prev {
    column-gap: 0.3em;
    border-radius: 20px;
    padding: 10px 20px;
}
.blank {
    border-radius: 10px;
    padding: 5px 10px;
    text-align: center;
    margin-bottom: 1em;
}
.blank .small {
    font-size: 0.7em;   
}
.next:hover, .prev:hover, .blank:hover {
    color: var(--lightblack);
    background-color: var(--red-transpatent);
}
.next::after, .prev::before {
    width: 24px;
    height: 24px;
    display: block;
    
}
.next::after { 
    content: url('../svg/arrowRight.svg'); 
}
.prev::before { 
    content: url('../svg/arrowLeft.svg');    
}
.index_image {
    width: 90vw;
    margin: 20px auto;
    display: block;
}
.format {
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.3em;
}
.download svg {
    margin-left: 10px;
}
.poems>div::before {
    content: url('../svg/curve.svg');
    height: 1em;
    display: block;
    margin: 25px 50px;
}
.poems>div:first-child:before {
    content: '';
}
.epigraph {
    margin: 10px 70px 0;
    font-size: 1.2em;
    font-style: italic;
}
p:has(+.shifted) {
    margin-bottom: 0;
}
.shifted {
    margin-left: 100px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7em;
    margin-top: 0;
}
.shifted_small {
    margin-left: 40px;
}
.from_author p {
    font-family: 'Courier New', Courier, monospace;
}
.dedication {
    text-align: right;
    font-style: italic;
}
.sys {
    color: var(--darkestgrey);
}
.story {
    border-collapse: collapse;
}
.story td {
    border: 1px solid var(--darkestgrey);
    padding: 1em;
}
.texts>div:not(:last-child):after  {
    content: url('../svg/curve.svg');
    height: 1em;
    width: 10em;
    display: block;
    margin: 25px auto;
}
.divider::after  {
    content: url('../svg/curve.svg');
    height: 1em;
    width: 10em;
    display: block;
    margin: 25px auto;
}
.martin_img, .book_cover {
    display: block;
    margin: 20px auto;
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 20px 10px;
    border-top: 1px solid var(--grey)
}

.r1 {
    transform: rotate(45deg);
}
.r2 {
    transform: rotate(90deg);
}
.r3 {
    transform: rotate(135deg);
}
.r4 {
    transform: rotate(-45deg);
}
.r5 {
    transform: rotate(-90deg);
}
.r6 {
    transform: rotate(-135deg);
}
.r7 {
    transform: rotate(180deg);
}
.center {
    text-align: center;
    display: block;
    margin: auto;
}
.with_subheader {
    margin-bottom: 0;
}
.subheader {
    margin-top: 0;
    text-align: center;
}